package cn.tedu.property_management_system.service;

import cn.tedu.property_management_system.entity.Building;
import cn.tedu.property_management_system.utils.JsonPage;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

public interface IBuildingService {

    List<Building> select(@RequestBody Building building);

    void insert(@RequestBody Building building);

    List<Building> list();

    Building editSelect(@RequestBody Building building);

    void update(@RequestBody Building building);

    void delete(@RequestBody Building building);

    int deletes(@RequestBody List<Building> list);

    List<String> floor();


    JsonPage<Building> pageSelect(Integer pageSize, Integer pageIndex);
}
